package com.cloud.job.job;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @packageName: com.cloud.job.job
 * @name: GoodsJob
 * @description:
 * @author: 董定卓
 * @dateTime: 2019/7/16 17:04
 */
public class GoodsJob implements Job {

    private final Logger logger = LoggerFactory.getLogger(this.getClass());

    @Override
    public void execute(JobExecutionContext context) {
        //获取任务名
        String taskName = context.getJobDetail().getKey().getName();
        logger.info("taskName->" + taskName);
        //处理执行任务之后的业务
    }
}
